GXUnlockTag
You can use theGXUnlockTag
function to allow QuickDraw GX to relocate, flatten, or unload a tag object.
void GXUnlockTag(gxTag target);
target
- A reference to the tag object to unlock.
DESCRIPTION
TheGXUnlockTag
function frees a previously locked tag object for relocation.
To directly edit a tag's contents, you must first callGXLockTag
. You can then
callGXGetTagStructure
and edit the tag's contents. After editing, you must callGXUnlockTag
.You cannot dispose of a tag that is locked. You must first call
GXUnlockTag
on a locked tag object before callingGXDisposeTag
.SPECIAL CONSIDERATIONS
To avoid fragmenting the QuickDraw GX heap, you should call theGXUnlockTag
function as soon as possible after callingGXLockTag
.You can nest calls to these direct-access routines, but be sure to call
GXUnlockTag
as many times as you callGXLockTag
.RESULT CODE
Errors tag_is_nil Notices (debugging version) tag_not_locked SEE ALSO
TheGXLockTag
function is described in the previous section. TheGXGetTagStructure
function is described in the next section.The
GXDisposeTag
function is described on page 8-14.